#define _CRT_SECURE_NO_WARNINGS 1
int erfen(int aee[], int k,int b)
{
	int left = 0;
	int right = b - 1;
	int mid = 0;
	while (left <= right)
	{
		int mid = (left + right )/ 2;
		if (k <aee[mid])
		{
			right = mid - 1;
		}
		else if (k > aee[mid])
		{
			left = mid + 1;
		}
		else
		{
			return mid;
		}
	}
	return -1;
}